;Info [ Npc Name{GambleWoman} X=10 Y=6 MapName={Backwardsroom} ]

;NPC Release 1 (2003) By Geoff
;99% Translated NPCs Including Quests

[@main]
#IF
equal p9 0
#ACT
goto @main-1
BreakTimeRecall 
break

#IF
equal p9 1
#ACT
goto @cube
BreakTimeRecall 
break

#IF
equal p9 9
#ACT
goto @quit
BreakTimeRecall 
break

[@main-1]
#IF
#ACT
mov p9 0
#SAY
Welcome to room 12 <$USERNAME>\
Here you throw a dice\
If the number is 5 or less, you will move back 7 rooms\
If more then 4, you will move forward the number in the dice\
Good luck\ \
<Thank you/@pre_cube>

[@pre_cube]
#IF
checkitem gamblechip 1
#ACT
mov p9 1
movr d0 6
inc d0 1
playdice 1 @next1
#SAY
Continue\ \
<Ok/@cube>
#ELSESAY
<$USERNAME>, you haven't got any chips!\
Go get some if you want to gamble\ \
<Silly Me/@Quit>
#ELSEACT
mov p9 9

[@cube]
#IF
small d0 5
#SAY
You rolled a <$STR(D0)>\
You will now move 7 rooms backwards\ \
<Oh God Damn it/@move>
#ELSESAY
You Roled a <$STR(D0)>\
You will now move <$STR(D0)> rooms forward\ \
<Nice/@dicemove>

[@dicemove]
#IF
equal d0 5 
#ACT
batchDelay 1
addbatch B111
addbatch B110
addbatch B109
addbatch B108
addbatch B107
batchmove
break

#IF
equal d0 6 
#ACT
batchDelay 1
addbatch B111
addbatch B110
addbatch B109
addbatch B108
addbatch B107
addbatch B106
batchmove
break

[@Quit]
#IF
#ACT
map B011

[@move]
#IF
#ACT
batchDelay 1
addbatch B111
addbatch B110
addbatch B109
addbatch B108
addbatch B107
addbatch B106
addbatch B105
batchmove


